<?php 

  class Person{
	      var $name;
		  var $sex;
		  var $age;
	  
	  function __construct($name,$sex,$age){
		  
		 
		         
		  
		  $this->name = $name;
		  $this->sex = $sex;
		  $this->age = $age;
		  
		  
		  }
		  
		  function say(){
			  
			  echo "我的名字叫:".$this->name."性别：".$this->sex."年龄:".$this->age."<br/>";
			  
			  }
			  
		 function __destruct(){
			 
			 echo "再见".$this->name."<br/>";
			 echo "再见".$this->age."<br/>";
			 echo "再见".$this->sex."<br/>";
			 
			 
			 }	  
	  
	  }
	  
	   $p1 = new Person("LeporXiao","man",20);
	  
	  
	   $p1->say();



?>
